<template>
	<div class="stock">
		<component-header :title="title" :show-date="showDate" :date="date" :path="path" :time = 'time' :status = 'status'></component-header>
		<stock-analysis @changetime = 'changetime'></stock-analysis>
		<component-footer :page="page"></component-footer>
	</div>
</template>

<script>
	import Header from '../Header'
	import Footer from '../Footer'
	import StockAnalysis from './stock/StockAnalysis'
	import TeansctionDet from './stock/TeansctionDet'
	export default {
		data(){
			return {
				page:1,
				status:'',
				time:1,
				title:'证券分析',
				showDate:true,
				date:'20170301~20170331',
				path:'/pages/Stock'
			}
		},
		components: {
			'component-header':Header,
			'component-footer':Footer,
			'stock-analysis': StockAnalysis,
			'teansction-det':TeansctionDet
		},
		created(){
			if(this.$route.query.status){
				this.status = this.$route.query.status;
			}
		},
		mounted(){
			TDAPP.onEvent('002028','');
			TDAPP.send();
		},
		methods:{
			changetime(index){
				this.time = index;
			}
		}
	}
</script>

<style scoped>
	.stock{
		margin-top: 0.44rem;
	}
	.content.stock {
		margin-bottom: 0;
	}
</style>
